#============================================================
# Create Time:			2020-06-28 13:37:32
# Last modify:			2020-06-28 17:44:20
# Writer:				Wenhao	1795902848@qq.com
# File Name:			draw.py
# File Type:			PY Source File
# Tool:					Mac -- vim & python
# Information:			
#============================================================
import matplotlib.pyplot as plt
#数据从./output.txt中提取
tp = [0.6160, 0.6040, 0.5880, 0.5680, 0.5960, 0.5560, 0.5760, 0.5720, 0.5520, 0.5720, 0.5640, 0.5480, 0.5520, 0.5680, 0.5560]
fp = [0.1040, 0.0480, 0.0280, 0.0160, 0.0080, 0.0040, 0.0000, 0.0000, 0.0000, 0.0000, 0.0040, 0.0000, 0.0000, 0.0000, 0.0000]
plt.plot(fp, tp)
plt.xlim([0, 1])
plt.ylim([0, 1])
plt.xlabel('fp')
plt.ylabel('tp')
plt.title('ROC')
plt.grid()
plt.show()
